POV-Ray : Newsgroups : povray.advanced-users : Air disruption question : Re: Air disruption question Server Time
30 Jul 2024 08:24:27 EDT (-0400)
  Re: Air disruption question  
From: Margus Ramst
Date: 31 May 2000 17:07:37
Message: <39357143.E4A3D7E7@peak.edu.ee>
Jan Walzer wrote:
> 
> I thought the media-code could be used for that, just instead of calculating
> the color of the "current particle" change the direction-vector of the
> traced ray ???

Well, I am no coder. But if I understand correctly how media works, the problem
is as follows:
To calculate the color of media along a particular ray, first the points are
found where the ray enters and exits the object. Between these points the ray is
divided into a specified number of intervals, and a (variable) number of samples
is taken within each interval.
This method relies upon the ray traversing the volume in a straight line, from
enter to exit. You can probably see why this wouldn't work if the ray were to
curve in an (unpredictable) manner.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.